package com.bank6677.sync.csm.domain.old;

import java.util.Date;

public class Rule {
    private Integer id;
    private String ruleDesc;
    private String ruleName;
    private String createTime;
    private String updateTime;
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRuleDesc() {
        return ruleDesc;
    }

    public void setRuleDesc(String ruleDesc) {
        this.ruleDesc = ruleDesc == null ? null : ruleDesc.trim();
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName == null ? null : ruleName.trim();
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof Rule)) {
            return false;
        }
        Rule other = (Rule) that;
        return this.getId() == null ? other == null : this.getId().equals(other.getId())
            && this.getRuleDesc() == null ? other == null : this.getRuleDesc().equals(other.getRuleDesc())
            && this.getRuleName() == null ? other == null : this.getRuleName().equals(other.getRuleName())
            && this.getCreateTime() == null ? other == null : this.getCreateTime().equals(other.getCreateTime())
            && this.getUpdateTime() == null ? other == null : this.getUpdateTime().equals(other.getUpdateTime());
    }

    @Override
    public int hashCode() {
        int hash = 23;
        if (getId() != null) {
            hash *= getId().hashCode();
        }
        if (getRuleDesc() != null) {
            hash *= getRuleDesc().hashCode();
        }
        if (getRuleName() != null) {
            hash *= getRuleName().hashCode();
        }
        if (getCreateTime() != null) {
            hash *= getCreateTime().hashCode();
        }
        if (getUpdateTime() != null) {
            hash *= getUpdateTime().hashCode();
        }
        return hash;
    }
}